package com.cloud.zuul.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import com.cloud.common.RestResponse;
import com.cloud.common.model.User;
import com.cloud.common.model.UserToken;

@FeignClient("user")
public interface Login {
	
	@PostMapping("/login")
	RestResponse<UserToken> login(@RequestBody User user); 
	
}
